package com.imay.live.activity;

import com.imay.base.activity.BaseActivity;
import com.imay.live.proto.helper.ProtoCallBack;
import com.imay.live.proto.helper.ProtoRequestHelper;

/**
 * Created by jeaman on 2017/4/13.
 */

public abstract class BaseRequestActivity extends BaseActivity implements ProtoCallBack {

    @Override
    protected void onDestroy() {
        //通过hashCode作为tag
        ProtoRequestHelper.cancelRequest(this.hashCode());
        super.onDestroy();
    }

    @Override
    public void onRequestSuccess(String command, String data) {

    }

    @Override
    public void onRequestError(String command, int code, String message) {

    }
}
